import request from '@/utils/request.js'

// 获取文章列表
const getArticlesList = (queryInfo) =>{
    return request.get('/mp/v1_0/articles',{params:queryInfo})
}
// 获取频道
const getChannelsList = () =>{
    return request.get('/mp/v1_0/channels')
}

// 删除文章

const deleteArticle = (articleId) =>{
    return request.delete(`/mp/v1_0/articles/${articleId}`)
}
export {
    getArticlesList,
    getChannelsList,
    deleteArticle
}